package com.cg.slms.domain;

import java.util.Date;

import org.hibernate.validator.constraints.Length;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @apiNote 订货单
 * @author GSC
 *
 */
public class Stockorder {

	private Integer id;//序号
	private Employee employee;//员工表
	private Merchandise merchandise;//商品表	
	private Client client;//客户表	
	@Length(max=3,min=1,message="进货单编号长度在1-3之间")
	private String code;//订单编号
	private int merchandisenumber;//订单数量
	private String orderdate;//订货日期
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Employee getEmployee() {
		return employee;
	}
	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	public Merchandise getMerchandise() {
		return merchandise;
	}
	public void setMerchandise(Merchandise merchandise) {
		this.merchandise = merchandise;
	}
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public int getMerchandisenumber() {
		return merchandisenumber;
	}
	public void setMerchandisenumber(int merchandisenumber) {
		this.merchandisenumber = merchandisenumber;
	}
	public String getOrderdate() {
		return orderdate;
	}
	public void setOrderdate(String  orderdate) {
		this.orderdate = orderdate;
	}

}
